package cn.car.carguanli.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class CarCd {
    private Integer adId;
    private AdPosition adPosition;
    private String imageUrl;
    private String linkUrl;
    private String title;
    private String description;
    private Short sortOrder;
    private Boolean isActive;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;

    public enum AdPosition {
        HOME_TOP, HOME_MIDDLE, HOME_BOTTOM, CATEGORY_PAGE, PRODUCT_PAGE
    }
}
